#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;

double F(double x) {
  return 8 * pow(x, 4.0) + 7 * pow(x, 3.0) + 2 * pow(x, 2.0) + 3 * x + 6;
}

int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int T;

  for (cin >> T; T; T--) {
    double y;

    cin >> y;
    if (F(0.0) > y || F(100.0) < y) {
      cout << "No solution!\n";
      continue;
    } else {
      double l = 0.0, r = 100.0;

      while (l + 1e-8 < r) {
        double m = (l + r) / 2.0;

        if (F(m) > y) {
          r = m;
        } else {
          l = m;
        }
      }
      cout << std::setprecision(4) << std::fixed;
      cout << (l + r) / 2 << "\n";
    }
  }
  return 0;
}